﻿@model IEnumerable<SoftHotel.Models.ReservaHab>

@{
    ViewBag.Title = "Buscar";
}

@using (Html.BeginForm())
{   
     @Html.ValidationSummary()

    <h1><strong>Resultado Búsqueda Reservas</strong></h1>
    <br />
    <table id="buscar" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="1">
	    <tr>
            <td>              
                <input type="submit" name="button" value="Regresar" />
            </td>
	    </tr>
    </table>	

    <br />
    <br />

    
<table id="MainContent_Table2" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
     <tr>	    
	    <td style="font-weight: bold; width: 150px;" align="center">Número Reserva</td>
	    <td style="font-weight: bold; width: 150px;" align="center">Cliente</td>
	    <td style="font-weight: bold; width: 70px;" align="center">Estado</td>
        <td style="font-weight: bold; width: 200px" align="center">Fecha Creación</td>
        <td style="font-weight: bold; width: 200px;" align="center">Fecha Check-in</td>
	    <td style="font-weight: bold; width: 150px;" align="center">Fecha Check-out</td>
	</tr>
    @{
    foreach (var reserva in Model)
    {  
            <tr>		        
		        <td style="font-weight: bold; width: 200px;" align="left">@Html.ActionLink(reserva.numeroReserva, "Details", reserva)</td>
		        <td style="font-weight: bold; width: 150px;" align="center">@Html.DisplayFor(modelItem => reserva.idCliente)</td>
		        <td style="font-weight: bold; width: 70px;" align="center">@Html.DisplayFor(modelItem => reserva.nombreEstado)</td>
                <td style="font-weight: bold; width: 200px" align="center">@Html.DisplayFor(modelItem => reserva.fechaCreacion)</td>
		        <td style="font-weight: bold; width: 80px;" align="center">@Html.DisplayFor(modelItem => reserva.fechaCheckin)</td>
                <td style="font-weight: bold; width: 80px;" align="center">@Html.DisplayFor(modelItem => reserva.fechaCheckout)</td>  
	        </tr>
    }
        }      
</table>
}

